package org.yu.team2023.flashdays;

import lombok.Value;
import net.minecraft.world.entity.ai.attributes.Attribute;
import net.minecraft.world.entity.ai.attributes.AttributeModifier;

import java.util.function.Supplier;

@Value
public class AdditionTreasure {
    Supplier<Attribute> attributeSupplier;
    String id;
    double startRange;
    double endRange;
    double initStartRange;
    double initEndRange;
    AttributeModifier.Operation operation;
    public double getInitValue(){
        return ModUtil.rangeRandom(initEndRange,initEndRange);
    }
    public double getUpgradeValue(){
        return ModUtil.rangeRandom(startRange,endRange);
    }
}
